<template>
	<view>
		<view class="navtit">
			<view class="classifylist" v-for="(item,index) in classifylist" :key="index" @click="changepopup(item,index)">
				<view :style="{'border-bottom':index==navindex?'solid 2rpx #FF8A9B':'','color':index==navindex?'#FF8A9B':''}">{{item}}</view>
			</view>
		</view>
		<view style="height: 84rpx;"></view>
		<view class="listbox" v-for="(item,index) in 5" :key="index">
			<view class="listinfo">
				<view class="leftbox">
					<!-- <image src="../../static/logo.png"></image> -->
				</view>
				<view class="rightbox">
					<view class="namebox">
						<view>立体手工课程</view>
						<view class="statusbox">待上课</view>
					</view>
					<view class="placebox">
						<view class="specbox">报名截止时间</view>
						<view>西湖区 朝阳洲中路 卓达马哈小区  </view>
					</view>
					<view class="placebox">
						
						<view>老师:梦梦</view>
					</view>
				</view>
			</view>
			<view class="infobut">
				活动报名
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				classifylist:['全部','待上课','已完结','待评价'],
				navindex:'',
			}
		},
		methods: {
			changepopup(item,index){
				this.navindex = index
			},
			changebx(item,index){
				this.cate_id = index
			},
		}
	}
</script>

<style lang="scss" scoped>
	.navtit{
		width: 750rpx;
		height: 84rpx;
		background: #FFFFFF;
		display: flex;
		position: fixed;
		top: 0;
		z-index: 99999999;
		
		.classifylist{
			width: 25%;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 28rpx;
			font-family: Source Han Sans CN-Medium, Source Han Sans CN;
			font-weight: 500;
			color: #222222;
			>view{
				width: fit-content;
				border-bottom: solid 2rpx #FFF;
				line-height: 84rpx;
				height: 84rpx;
			}
			image{
				width: 14rpx;
				height: 30rpx;
				margin-left: 12rpx;
			}
		}
	}
	.listbox{
		width: 690rpx;
		padding: 0 30rpx;
		height: 326rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		margin-top: 20rpx;
		
		.listinfo{
			height: 218rpx;
			border-bottom: 2rpx solid #ECECEC;
			display: flex;
			align-items: center;
			.leftbox{
				width: 190rpx;
				background: #FFFFFF;
				border-radius: 6rpx;
				image{
					width: 160rpx;
					height: 160rpx;
				}
			}
			.rightbox{
				width: 500rpx;
				.namebox{
					font-size: 36rpx;
					font-family: Source Han Sans CN-Medium, Source Han Sans CN;
					font-weight: 500;
					color: #222222;
					-webkit-line-clamp: 1;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					overflow: hidden;
					text-overflow: ellipsis;
					display: flex;
					align-items: center;
					justify-content: space-between;
					.name{
						width: 400rpx;
						-webkit-line-clamp: 1;
						display: -webkit-box;
						-webkit-box-orient: vertical;
						overflow: hidden;
						text-overflow: ellipsis;
					}
					.statusbox{
						width: 100rpx;
						text-align: center;
						font-size: 28rpx;
						font-family: Source Han Sans CN-Medium, Source Han Sans CN;
						font-weight: 500;
						color: #FF8A9B;
					}
				}
				.placebox{
					font-size: 28rpx;
					font-family: Source Han Sans CN-Medium, Source Han Sans CN;
					font-weight: 500;
					color: #555555;
					display: flex;
					align-items: center;
					margin-top: 18rpx;
					image{
						width: 24rpx;
						height: 26rpx;
						margin-right: 14rpx;
					}
					.specbox{
						width: 68rpx;
						height: 38rpx;
						background: linear-gradient(180deg, #FCBB8C 0%, #FF8158 100%);
						border-radius: 4rpx 8rpx 8rpx 8rpx;
						line-height: 38rpx;
						text-align: center;
						font-size: 28rpx;
						font-family: Source Han Sans CN-Medium, Source Han Sans CN;
						font-weight: 500;
						color: #FFFFFF;
						margin-right: 18rpx;
					}
				}
			}
		}
		.infobut{
			width: 690rpx;
			height: 68rpx;
			background: #FF8A9B;
			border-radius: 36rpx ;
			font-size: 32rpx;
			font-family: Source Han Sans CN-Medium, Source Han Sans CN;
			font-weight: 500;
			color: #FFFFFF;
			text-align: center;
			line-height: 68rpx;
			margin-top: 20rpx;
		}
	}
	.tiptype {
		width: 100%;
		padding-top: 100rpx;
		background-color: #FFF;
	
		.boxitem {
			display: flex;
			flex-wrap: wrap;
			width: 690rpx;
			padding: 40rpx 30rpx;
	
			.itembox {
				height: 72rpx;
				border-radius: 40rpx;
				border: 2rpx solid #999999;
				line-height: 72rpx;
				width: fit-content;
				padding: 0 50rpx;
				margin-right: 24rpx;
				margin-bottom: 20rpx;
			}
		}
	}

</style>
